﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Retirement_riskResult : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string requestIdstr = (string)Request.QueryString["totalScore"];

        int totalScore = Convert.ToInt32(requestIdstr);

        if (totalScore < 24 && totalScore > 19)
        {

            this.lb_result.Text = "Aggressive - suggests that this you are open to a significant level of investment risk with your funds.";
        }
        else if (totalScore < 18 && totalScore > 14)
        {
            this.lb_result.Text = "Balanced - suggests that you accept a certain level of risk when making investment decisions.";
        }
        else if (totalScore < 13 && totalScore > 8)
        {
            this.lb_result.Text = "Conservative - suggests that you would prefer to minimize risk with your investment funds.";
        }
    }
    protected void btn_ok_Click(object sender, ImageClickEventArgs e)
    {
        this.Response.Redirect("./riskProfiler.aspx");
    }
}